/**
 *
 */
package com.hzhk.happyrent.utils;

import android.content.Context;
import android.widget.Toast;

public class ToastUtil {

    public static void show (Context context, String info) {
        Toast.makeText(context, info, Toast.LENGTH_LONG).show();
    }

    public static void show (Context context, int info) {
        Toast.makeText(context, info, Toast.LENGTH_LONG).show();
    }
    private static Toast toast;
    public static void show (Context context, String info, int type) {
        if (toast == null) {
            toast = Toast.makeText(context, info, Toast.LENGTH_SHORT);
        } else {
            toast.setText(info);
        }
        toast.show();
    }
}
